<div id="buttons" class="span-24">
    <div id="crearportal" class="prepend span-3">
        <a href="<?php echo url_for('portal_new')?>"/>
    </div>
</div>
<div class="span-24 prepend-top">
<table class="portals">
    <tr>
        <th>Portal</th>
        <th>Organización</th>
        <th>Activado</th>
        <th>Publicado</th>
        <th>Editar</th>
    </tr>
    <?php foreach ($portals as $i => $portal): ?>
        <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
            <td class="portal">
                <a href="<?php echo url_for('portal_editor',$portal) ?>">
                    <?php echo $portal->getTitle() ?>
                </a>
            </td>
            <td class="organization">
                <?php echo $portal->getEmsOrganization() ?>
            </td>
            <td class="enabled">
                <?php if ($portal->getPublished() == true): ?>
                    <img alt="Sí" src="/images/util/check.png">
                <?php else: ?>
                    <img alt="No" src="/images/util/cross.png">
                <?php endif; ?>
            </td>
            <td class="published">
                <?php if ($portal->getPublished() == true): ?>
                    <img alt="Sí" src="/images/util/check.png">
                <?php else: ?>
                    <img alt="No" src="/images/util/cross.png">
                <?php endif; ?>
            </td>
            <td class="edit">
                <a class="edit" href="<?php echo url_for('portal_editor',$portal) ?>"/>
            </td>
        </tr>
  <?php endforeach; ?>
</table>
</div>